package com.test.Iservice;

import com.alibaba.fastjson.JSONObject;
import com.test.pojo.example;

import java.util.List;

/**
 * @Description exampleService接口
 * @Author Mr.Li
 * @Date 2020/3/10 11:57
 */
public interface IExampleService {

   /**
   *@Description: 添加
   *@Params
   *@Return
   *@Author Mr.Li
   *@Date 2020/3/10 15:22
   */
   List<example> selectAll();

   /**
    *@Description: 删除
    *@Params
    *@Return
    *@Author Mr.Li
    *@Date 2020/3/10 12:38
    */
   Boolean deleteExampleById(Integer id);
   /**
    *@Description: 修改
    *@Params
    *@Return
    *@Author Mr.Li
    *@Date 2020/3/10 12:38
    */
   Boolean updateExampleById(example example);

   /**
    *@Description: 新增
    *@Params
    *@Return
    *@Author Mr.Li
    *@Date 2020/3/10 12:39
    */
   Boolean addExample(example example);
   /**
   *@Description: 获取今天天气的json对象
   *@Params
   *@Return
   *@Author Mr.Li
   *@Date 2020/3/11 11:43
   */
    JSONObject getWeatherByCityId(String cityId);
}
